package com.first.xiinn.service.impl;

import java.util.List;
import com.first.core.service.impl.BaseServiceImpl;
import com.first.xiinn.dao.BookTypeDao;
import com.first.xiinn.model.BookType;
import com.first.xiinn.service.BookTypeService;

public class BookTypeServiceImpl extends BaseServiceImpl<BookType> implements BookTypeService{
	
	private BookTypeDao dao;

	public BookTypeServiceImpl(BookTypeDao dao) {
		super(dao);
		this.dao = dao;
	}
	
	 public List<BookType> findByParentId(String parentId)
	 {
	    return dao.findByParentId(parentId);
	 }
	 
	 public BookType get(String bookTypeId){
		 return dao.get(bookTypeId);
	 }
}
